<include file="Public/Header" />
<style type="text/css">
    .layui-layer-tips{width:auto !important;}
</style>
<script src="__SCRIPT__/common.js" type="text/javascript"></script>
<script src="__PUBLIC__/Layer/layer.js" type="text/javascript"></script>
<script src="__PUBLIC__/DatePicker/DatePicker.js" type="text/javascript"></script>
<link href="__PUBLIC__/DatePicker/Css/DatePicker.css" type="text/css" rel="stylesheet" />
<table width="100%" height="31px" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
    <tr>
        <td height="31"><div class="titlebt">通币余额查询</div></td>
    </tr>
</table>

<div class="main">
    <div class="operate">
        <div class="left_pad">
            <form id="search" method="post" action="{:U('Finance/TbBalance')}">
                <input type="text" name="keyword" title="关键字" class="inp_default" placeholder="请输入用户名">
                <input type="submit" class="btn_blue" value="查  询">
            </form>
        </div>
    </div>
    <div class="list">



            <table width="100%">
                <tr>
                    <th>编号</th>
                    <th>用户名</th>
                    <th>通币余额</th>
                </tr>

                <empty name="list">
                    <tr>
                        <td colspan="9">本区域暂无数据显示...</td>
                    </tr>
                    <else />
                    <volist name='list' id='v'>
						<if condition="$v['user_id'] neq 1">
                        <tr>
                            <td>{$v.user_id}</td>
                            <td>{$v.user_name}</td>
                            <td>{$v.tong_money_count|(float)}</td>
                        </tr>
						</if>
                    </volist>
                </empty>


            </table>
    </div>
    <div id="page-list" style="text-align: center"></div>

</div>
<include file="Public/Copyright" />
<script type="text/javascript" src="__PUBLIC__/Layerpage/laypage.js"></script>
<script type="text/javascript">
    laypage({
        cont: 'page-list',
        pages: {$pages},
        first: 1,
        last: {$pages},
        prev: '<',
        next: '>',
        curr: function(){
            var page = location.search.match(/page=(\d+)/);
            return page ? page[1] : 1;
        }(),
        jump: function(e, first){ //
            if(!first){
                location.href = page() + e.curr;
            }
        }
    });

    function page(){
        var u = location.href;
        var r = '';
        if(u.indexOf('&') > 0){
            r = location.href.replace(/&page=\d+/, '');
            return r + '&page=';
        }else if(u.indexOf('?') > 0 ){
            if(u.indexOf('?page') > 0 ){
                r = location.href.replace(/\?page=\d+/, '');
                return r + '?page=';
            }else{
                return location.href + '&page=';
            }
        }else{
            return location.href + '?page=';
        }
    }
</script>
</body>
</html>
